//
//  HOTPopupView.h
//  Genpara
//
//  Created by AndyChang.zhang on 14-10-9.
//  Copyright (c) 2014年 zhangchh. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HOTRoundedXFontLabel.h"
typedef enum {
    
    HOTPopOKBtn,
    HOTPopCancelBtn
    
}HOTPopBtnType;

@interface HOTPopupView : UIView {
    
    __weak IBOutlet HOTRoundedXFontLabel *titleLabel;
    __weak IBOutlet UILabel *contentLabel;
    
}

@property(nonatomic)NSTimeInterval animationDuration;
@property(nonatomic)CGPoint offsetPoint;
@property(nonatomic,copy)void(^popBtnClickedBlock)(HOTPopBtnType);

-(id)initWithTitle:(NSString *)title message:(NSString *)message;
-(void)showInView:(UIView *)superView;
- (IBAction)okBtnClicked:(id)sender;
- (IBAction)cancelBtnClicked:(id)sender;

/**
 *  显示在window对象的窗口中
 */
-(void)showInWindow;

@end
